﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Services;
using ZhimeiSoft.CharmManager.Server.Proxy.Impl;
using ZhimeiSoft.CharmManager.DOL;

namespace ZhimeiSoft.CharmManager.Server.Service.WebService
{
    /// <summary>
    /// Summary description for CharmBusiness
    /// </summary>
    [WebService(Namespace = "http://tempuri.org/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    [System.ComponentModel.ToolboxItem(false)]
    // To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    public class CharmBusiness : System.Web.Services.WebService
    {
        WSBusinessServerProxyImpl service = null;
        public CharmBusiness()
        {
            service = new WSBusinessServerProxyImpl();
        }

        [WebMethod()]
        public string HelloWorld()
        {
            return "Hello World";
        }

        #region 员工信息

        [WebMethod()]
        public bool InsertEmployee(DBEntityEmployee employee, out string error)
        {
            return service.InsertEmployee(employee, out error);
        }

        [WebMethod()]
        public bool UpdateEmployee(DBEntityEmployee employee, out string error)
        {
            return service.UpdateEmployee(employee, out error);
        }

        [WebMethod()]
        public bool DeleteEmployee(int employeeid, out string error)
        {
            return service.DeleteEmployee(employeeid, out error);
        }

        #endregion



    }
}
